package com.capinfo.entity;

import com.capinfo.base.BaseEntity;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.ToString;

import javax.persistence.Column;
import javax.persistence.GeneratedValue;
import javax.persistence.Id;
import javax.persistence.Table;
import java.util.ArrayList;
import java.util.List;

/**
 * @author: sunbenjin
 * @date: 2020/3/3
 * 业务
 **/
@Table(name="cap_service")
@Data
@ToString
@EqualsAndHashCode
public class CapService extends BaseEntity {
    @Id
    @GeneratedValue(generator = "JDBC")
    private String id;

    @Column(name="name")
    private String name;
    //业务分类
    @Column(name="service_kind_id")
    private String serviceKindId;

    //业务类型
    @Column(name="service_type_id")
    private String serviceTypeId;

    //所属部门
    @Column(name="dept_id")
    private String sysOfficeId;

    @Column(name="doc_summary")
    private String docSummary;

    @Column(name="status")
    private Integer status;

    @Column(name="doc_tmp_id")
    private String docTmpId;
    //所需材料
    List<CapServiceDocument> documentList=new ArrayList<>();
}
